package worldcup;

public class WorldCup {
    private int year;
    private String name;

    public WorldCup(int year, String name) {
        this.setYear(year);
        this.setName(name);
    }

    public WorldCup() {
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
